﻿    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Contact.ascx.cs" Inherits="BSPortal.Usercontrol.Contact" %>   
    <style type="text/css">
        .style1
        {
            font-size: large;
        }
    </style>
    <h2 style="color:#EE7307">Liên hệ</h2>
    <div align="center" style="margin:20px 0;">
        <table width="50%" border="0" cellspacing="5" cellpadding="2" align="center">
		    <tbody>
		        <tr>
				    <td width="30%">Họ tên : <span class="font_err"><asp:RequiredFieldValidator runat="server" ID="require1" ErrorMessage="(*)" 
				            ControlToValidate="txtName"></asp:RequiredFieldValidator></span></td>
				    <td><asp:TextBox runat="server" id="txtName" value="" style="width:100%"></asp:TextBox>
			    </tr>
			    <tr>
				    <td>Email : <span class="font_err"><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator5" ErrorMessage="(*)" 
				            ControlToValidate="txtEmail"></asp:RequiredFieldValidator></span></span></td>
				    <td><asp:TextBox runat="server" id="txtEmail" value="" style="width:100%"></asp:TextBox></td>
			    </tr>
			    <tr>
				    <td>Địa chỉ : <span class="font_err"><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ErrorMessage="(*)" 
				            ControlToValidate="txtAddress"></asp:RequiredFieldValidator></span></span></td>
				    <td><asp:TextBox runat="server" id="txtAddress" value="" style="width:100%"></asp:TextBox></td>
			    </tr>
			    <tr>
				    <td>Điện thoại : <span class="font_err"><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ErrorMessage="(*)" 
				            ControlToValidate="txtPhone"></asp:RequiredFieldValidator></span></span></td>
				    <td><asp:TextBox runat="server" id="txtPhone" value="" style="width:100%"></asp:TextBox></td>
			    </tr>

			    <tr>
				    <td>Nội dung liên lạc : <span class="font_err"><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ErrorMessage="(*)" 
				            ControlToValidate="txtContent"></asp:RequiredFieldValidator></span></span></td>
				    <td><asp:TextBox runat="server" id="txtContent" value="" style="width:100%"></asp:TextBox></td>
			    </tr>
			    <tr>
				    <td>Mã bảo vệ : <span class="font_err"><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ErrorMessage="(*)" 
				            ControlToValidate="txtCapcha"></asp:RequiredFieldValidator></span></span></td>
				    <td><asp:TextBox runat="server" id="txtCapcha" value="" style="width:65%"></asp:TextBox>&nbsp;
					      <img height="25" alt="" src="../Capcha.aspx" width="80" align="absmiddle" /></td>
			    </tr>
			    <tr>
				    <td align="center" colspan="2">
				        <asp:Button ID="btnSend" runat="server" Text="Gửi" Width="50px" 
                            onclick="btnSend_Click"/>&nbsp;&nbsp;
					    <asp:Button ID="Button1" runat="server" Text="Xóa"  Width="50px" OnClientClick="ClearContact(); return false;"/>&nbsp;&nbsp;
				    </td>
			    </tr>
		    </tbody>
	    </table>
    </div>
    <br />
    <script type="text/javascript" language="javascript">
        function ClearContact()
        {
            document.getElementById('<%=txtName.ClientID %>').value = '';
            document.getElementById('<%=txtEmail.ClientID %>').value = '';
            document.getElementById('<%=txtAddress.ClientID %>').value = '';
            document.getElementById('<%=txtPhone.ClientID %>').value = '';
            document.getElementById('<%=txtContent.ClientID %>').value = '';
            document.getElementById('<%=txtCapcha.ClientID %>').value = '';
        }
    </script>